package com.sh.data.engine.application.model.request.integration;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@Schema
public class OfflineTaskCreateTableMappingRequest {

    @NotNull(message = "来源数据源id不能为空")
    @Schema(description = "来源数据源id")
    private Integer sourceId;

    @NotNull(message = "目标数据源id不能为空")
    @Schema(description = "目标数据源id")
    private Integer targetId;

    @NotNull(message = "来源表列表不能为空")
    @Schema(description = "来源表列表")
    private List<String> sourceTables;

    @NotNull(message = "目标表列表不能为空")
    @Schema(description = "目标表列表")
    private List<String> targetTables;

    @Schema(description = "分区字段")
    private List<String> partitionFields;

}
